import math

print(math.pi)
print(math.e)
print(math.inf)

day1 = 1
sumup = math.pow((day1 + 0.01), 365)
sumdown = math.pow((day1 - 0.01), 365)
print("向上:{:.2f},向下:{:.2f}.".format(sumup, sumdown))

day = 1
for i in range(365):
    if i % 7 in [6, 0]:
        day = day * (1 - 0.01)
    else:
        day = day * (1 + 0.01)

print("向上5天向下2天的力量:{:.2f}.".format(day))


def dayUp(df):
    dayup = 1
    for i in range(365):
        if i % 7 in (6, 0):
            dayup = dayup * (1 - 0.01)
        else:
            dayup = dayup * (1 + df)
    return dayup
dayfacotr = 0.01
while (dayUp(dayfacotr) < sumup):
    dayfacotr += 0.001
print("每天的努力参数是:{:.3f}".format(dayfacotr))
